package org.shagin.jfin.model.event;

import org.shagin.jfin.data.model.CostCenter;
import org.shagin.jfin.data.model.IBudget;

/**
 * The Class CostCenterEvent.
 */
public class CostCenterEvent extends BudgetItemEvent<CostCenter> {
    private static final long serialVersionUID = -2394587168927826712L;

    /**
     * Instantiates a new cost center event.
     * 
     * @param source the source
     * @param costCenter the cost center
     */
    public CostCenterEvent(IBudget source, CostCenter costCenter) {
        super(source, costCenter);
    }

    /**
     * Gets the cost center.
     * 
     * @return the cost center
     */
    public CostCenter getCostCenter() {
        return getBudgetItem();
    }
}
